package com.yj.service;

import com.yj.entity.Comments;
import com.yj.vo.JsonResult;

import java.util.List;

import javax.servlet.http.HttpSession;

import org.springframework.web.bind.annotation.RequestParam;

import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yj
 * @since 2020-08-24
 */
public interface ICommentsService extends IService<Comments> {
	//房源评论的展示
	public JsonResult showComments(int hid);

	//房源评论的新增
	
	public JsonResult addComments(Comments comments,HttpSession session);
	
	//评论删除
	public JsonResult delComments(int pid,HttpSession session);
	
	//页数
	public JsonResult pages();
		
	//每页数据
	public JsonResult page( int pageNum);
	
	//评论删除
	public JsonResult delComments(int pid);
	
}
